<?php

use yii\db\Migration;
use yii\db\Schema;

class m170921_024957_ADD_COLUMN_ORDER_ROOM_COMMISS_PRICE extends Migration
{
    public function up()
    {
												
         $this->addColumn('{{order_room}}', 'commiss_price', Schema::TYPE_DECIMAL. "(10,2) DEFAULT NULL COMMENT '后返佣金价格' ");
    }

    public function down()
    {
        echo "m170921_024957_ADD_COLUMN_ORDER_ROOM_COMMISS_PRICE cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
